package win.smartown.java.io;

import java.io.IOException;

/**
 * Created by smartown on 2017/5/16.
 */
public class Test {

    public static void main(String[] args) {
        Test test = new Test();
//        test.testTerminalReader();
//        test.testFileReader();
        test.testFileWriter();
    }

    public void testTerminalReader() {
        try {
            TerminalReader reader = new TerminalReader();
            reader.tryReadLine();
            reader.tryRead();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void testFileReader() {
        try {
            FileReader fileReader = new FileReader();
            fileReader.readFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public void testFileWriter() {
        try {
            FileWriter fileWriter = new FileWriter();
            fileWriter.writeFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
